/**
 * @author xana
 * @date 2021/6/6
 */

#ifndef DNPLAYER_JAVACALLHELPER_H
#define DNPLAYER_JAVACALLHELPER_H


#include <jni.h>


class JavaCallHelper {


public:
    JavaCallHelper(JavaVM *_javaVM, JNIEnv *_env, jobject &_jobj);

    ~JavaCallHelper();

    void onError(int thread, int code);

    void onParpare(int thread);

    void onVideoLoaded(int w, int h, float fps, int rate);

public:
    JavaVM *javaVM;
    JNIEnv *env;
    jobject jobj;
    jmethodID jmid_error, jmid_prepare, jmid_video_load;

};


#endif //DNPLAYER_JAVACALLHELPER_H
